package com.lz.mapper;

import com.lz.pojo.Brand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper {
    @Select("select id,brand_name brandName,company_name companyName,ordered,description,status from tb_brand;")
    List<Brand> selectAll();
    List<Brand> selectOne(@Param("id") int id,@Param("brandName")String brandName,@Param("companyName")String companyName);
    int deleteOne(@Param("id") int id);
    void addOne(Brand sth);
    int updateOne(Brand sth);
}
